home *** CD-ROM | disk | FTP | other *** search
/ Sideface Sampler / Sideface Sampler.iso / various / share / games / dos-03 / play$.bat < prev    next >
Encoding:
DOS Batch File  |  1994-12-22  |  1.3 KB  |  66 lines

  1. @Echo Off
  2. set x=x
  3. Echo Copying Files To Temporary Directory On Harddisk.......
  4. if not exist c:\$temp\*.* goto make
  5. goto exs
  6. :make
  7. set x=ZAP
  8. md c:\$temp >nul
  9. :exs
  10. xcopy . c:\$temp >nul
  11. :handler
  12. If errorlevel 0 goto run
  13. if errorlevel 1 goto nocd
  14. if errorlevel 2 goto break
  15. if errorlevel 4 goto nomem
  16. if errorlevel 5 goto diskerr
  17. Echo An Unknown Error Occured......
  18. goto delfile
  19. :break
  20. Echo You Pressed CTRL+BREAK........
  21. Echo Aborting......
  22. goto delfile
  23. :nomem
  24. Echo An Initialization Error Occured;
  25. Echo There is not Enough Free Memory or Disk Space to Complete The Operation
  26. goto delfile
  27. :nocd
  28. Echo The (Source) Files Could not Be Found!
  29. Echo Aborting.......
  30. goto delfile
  31. :diskerr
  32. Echo A Disk Write Error Occured......
  33. Echo There Is Not Enough Disk Space......
  34. Goto delfile
  35. :run
  36. c:
  37. cd\$temp
  38. attrib -R *.* >nul
  39. Echo Starting Program.......
  40. setup
  41. ror
  42. Echo Deleting Temporary Files..........
  43. :delfile
  44. attrib -R *.* /s >nul
  45. del CHRSET3.DAT >nul
  46. del FILE_ID.DIZ >nul
  47. del README.BAT  >nul
  48. del README.DOC  >nul
  49. del RISE.SMD    >nul
  50. del ROR.EXE     >nul
  51. del SETUP.EXE   >nul
  52. del PLAY$.BAT   >nul
  53.  
  54. Echo Temporary Files Removed
  55. cd..
  56. if "%x%"=="ZAP" goto ZAP
  57. Echo Your $TEMP Directory already existed, and was not empty.
  58. Echo $TEMP NOT Deleted
  59. goto out
  60. :zap
  61. echo y|del c:\$temp\. >nul
  62. rd c:\$temp >nul
  63. :out
  64. %cdrom%:
  65. cd\
  66.